/* Socks Server 5
 * Copyright (C) 2011 by Matteo Ricchetti - <matteo.ricchetti@libero.it>

 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifndef SS5MOD_LOG_H
#define SS5MOD_LOG_H 1

/*
 * 日志模块：
 * 默认日志文件在"/var/log/ss5/ss5.log"；也可以采用syslog方式记录日志信息到syslog。
 * 多个进程/线程同时写文件会造成什么问题？如果加锁会造成多大影响？
 */

/*
 * Initialize module context
 */
UINT
  InitModule(		struct _module *m
);

/*
 * Master function: logs socks server activities
 */
UINT
  Logging( 		char *s5logstring
);

/*
 * Slave functions: close log file and verbose
 */
UINT
  S5LogFileClose(	void
);

#endif
